<template>
  <!-- 首页 -->
  <div class="hilton-index">
    <!-- 首页视频展示 -->
    <div class="hilton_index_video">
      <div class="index_video">
        <video src="/img/BEJ_PLP_Ambient3.MP4" controls autoplay loop></video>
      </div>

      <div class="hilton_index_title">
        <span>北京四季酒店</span>
        <h1>北京</h1>
        <p>北京市朝阳区亮马桥路48号,邮编:100125</p>
        <div class="hilton_index_video_text">
          <span>+86 10 5695 8888</span>
          <span>位置</span>
          <span>联系我们</span>
        </div>
      </div>
    </div>
    <div class="explore_more">
      <span>向下滚动探索更多</span>
    </div>

    <!-- 标签 -->
    <div class="index_tag">
      <div @click="$router.push('/Position')">
        <span class="el-icon-location-outline s1"></span>
        <span class="s2">位置</span>
      </div>
      <div @click="$router.push('/guestroom')">
        <span class="el-icon-moon s1"></span>
        <span class="s2">客房与服务</span>
      </div>
      <div @click="$router.push('/experience')">
        <span class="el-icon-place s1"></span>
        <span class="s2">体验</span>
      </div>
      <div @click="$router.push('/food')">
        <span class="el-icon-knife-fork s1"></span>
        <span class="s2">餐饮美食</span>
      </div>
      <div @click="$router.push('/spa')">
        <span class="el-icon-ship s1"></span>
        <span class="s2">水疗</span>
      </div>
    </div>

    <!-- 文字简介 -->
    <div class="index_introduce">
      <p>北京商业区的静谧桃源</p>
      <div>
        酒店位于繁华熙攘的朝阳区，高耸于众多大使馆和跨国公司总部之间，以热情周到的服务为您打开了探索北京这座神秘之都的大门，带您领略不为人知的帝都特色风貌。一番游览后回到酒店，您可以在宁静的茶园中整理思绪，在洒满阳光的泳池自由戏水，或者单纯地坐下，静静地欣赏高挑中庭内
        400
        只不锈钢蝴蝶“展翅飞翔”的妙曼舞姿，感受千变万化的灵动之美，然后再外出探索更多精彩。一股流连忘返之感油然而生？这就是北京，令人心醉神迷。
      </div>
    </div>

    <!-- 客房与套房 -->
    <template>
      <swiper class="swiper" :options="swiperOption" ref="swiper">
        <swiper-slide v-for="(item, i) in imgs" :key="i">
          <div class="swiper_img">
            <div class="swiper_img1">
              <img :src="`/img/${item.img}`" alt="" />
              <div class="swiper_detail">
                <span>查看房价</span>
                <span>详情</span>
                <p>{{ item.detail }}</p>
              </div>
            </div>

            <div>
              <h2>{{ item.title }}</h2>
            </div>
          </div>
        </swiper-slide>
        <div class="swiper-pagination" slot="pagination"></div>
        <div class="swiper-button-prev" slot="button-prev"></div>
        <div class="swiper-button-next" slot="button-next"></div>
      </swiper>
    </template>

    <!-- 精选优惠 -->
    <div class="index_discount">
      <div class="index_discount_1">
        <span>精选优惠</span>
        <span>全部优惠</span>
      </div>

      <ul>
        <li v-for="(item, i) in discounts" :key="i">
          <img :src="`img/${item.img}`" alt="" />
          <div>
            <p>{{ item.title }}</p>
            <span>查看优惠</span>
          </div>
        </li>
      </ul>
    </div>

    <!--精彩北京 四季呈现  -->
    <div class="index_big">
      <p>精彩北京,四季呈现</p>
      <div class="index_big_detail">
        <div>
          <img src="img/index_big01.jpg" alt="" />
        </div>
        <div>
          <p>本地热门景点：我们特制的北京城游玩指南</p>
          <p>
            北京四季酒店的员工分享他们在繁华北京城喜爱的餐饮、购物和游玩场所及其他精彩保留节目。
          </p>
          <p>详情</p>
        </div>
      </div>
      <div class="index_big_detail">
        <div>
          <img src="img/index_big02.jpg" alt="" />
        </div>
        <div>
          <p>艺术就是生活</p>
          <p>
            酒店“驻店艺术家”计划的首位艺术家万瑾玉女士是一位才华横溢的年轻女性，其作品探索了魔幻现实主义的广阔深度。她的《蓝色向日葵》系列作品是对一种简单花朵的惊艳诠释，将在北京四季酒店展出
          </p>
        </div>
      </div>
    </div>

    <!-- 特色体验 -->
    <div class="experience">
      <div class="experience_title">
        <div>
          <span>特色体验</span>
          <h2>从难得一见的角度饱览长城盛景</h2>
          <p>
            登上私人直升机于高空俯瞰，以震撼视角一览长城雄风。沿着壮丽的慕田峪段翻山越岭，在向导的带领下徒步观光，在长城上享受野餐之乐。
          </p>
        </div>
        <div>
          <span>详情</span>
        </div>
      </div>

      <div class="experience_img">
        <img src="img/index_big03.jpg" alt="" />
      </div>
    </div>

    <!-- 致辞 -->
    <div class="index_spaeech">
      <img src="img/index_background02.jpg" alt="" />
      <div>
        <p>
          “作为一个土生土长的北京人,我很荣幸能向来自世界各地的宾客介绍地道的京味体验。”
        </p>
        <p>CHRIS LIU 副主席礼宾词</p>
      </div>
    </div>

    <!-- #FSBEIJING -->
    <div class="visit_bj">
      <p>#FSBEIJING</p>
      <p>
        访问 @fsbeijing 和
        #fsbeijing，探索四海宾朋在北京四季酒店收获的难忘体验。
      </p>
      <div class="visit_bj_img">
        <div>
          <img src="img/index_foot01.jpg" alt="" />
          <span class="el-icon-camera">&nbsp;@HZL7315</span>
        </div>
        <div>
          <img src="img/index_foot02.jpg" alt="" />
          <span class="el-icon-camera">&nbsp;@TIME2FEEL</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";

export default {
  components: {
    Swiper,
    SwiperSlide,
  },
  data() {
    return {
      // 轮播图
      imgs: [
        {
          num: 0,
          title: "豪华客房",
          img: "index_guestroom01.jpg",
          detail:
            "豪华客房配备有大床或两张单人床及先进豪华的设施，设计风格及装潢颇具时代感，线条简洁利落，空间宽阔。室内配套设施完备；置身其中，倍感悠闲舒畅。",
        },
        {
          num: 1,
          title: "四季客房",
          img: "index_reasonroom01.jpg",
          detail:
            "四季客房设计以温暖和谐的色调搭配红木家具，别具韵味。豪华设施齐备，宽敞的空间与窗外迷人的城市景色交相呼应，配备有大床或两张单人床及开放式衣柜，给予客人温馨放松、抒怀自在的感觉。",
        },
        {
          num: 2,
          title: "大使套房",
          img: "index_leaderroom01.jpg",
          detail:
            "大使套房位于 7 至 26 层的转角处，拥有独立的起居室和卧室，宽敞亮丽的空间面积达 73 平方米（786 平方英尺），从起居室与卧室均能欣赏窗外充满大都会气息的自然景致，配合四季酒店备受称颂的贴心服务，绝对是商务与度假旅客的理想居庭。",
        },
        {
          num: 3,
          title: "北京套房",
          img: "index_beijingroom01.jpg",
          detail:
            "装潢华丽的北京套房位于 23 至 25 层，让您与挚爱拥有充裕的活动空间，享受亲切而温馨的家居氛围。富时代感的典雅设计，宽敞舒适的起坐间，別具特色的红木家具，充满亚洲色彩的艺术装饰品，设置行政办公桌的工作间，再配合闻名中外的四季贴心服务，定能带给您宾至如归的住宿体验。",
        },
        {
          num: 4,
          title: "皇家套房",
          img: "index_kingroom01.jpg",
          detail:
            "被誉为空中宫殿的皇家套房位于酒店顶层，展现尊贵生活品味的崭新篇章。华贵典雅的家具陈列、充满品味的艺术品摆设、以及划时代的智能科技设施，令宽敞的起居活动空间洋溢着时尚的家居气派。",
        },
      ],
      // 轮播图组件
      swiperOption: {
        loop: "true",
        slidesPerView: 3,
        centeredSlides: true,
        spaceBetween: 30,
        direction: "horizontal",
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
        },
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev",
        },
      },

      // 精选优惠
      discounts: [
        {
          title: "尊享悠长假期 - 第三晚免费",
          img: "index_discount01.jpg",
        },
        {
          title: "标准房价",
          img: "index_discount02.jpg",
        },
        {
          title: "含早套餐",
          img: "index_discount03.jpg",
        },
        {
          title: "提前预定 - 高达20%折扣",
          img: "index_discount04.jpg",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.hilton-index {
  user-select: none;

  // 首页第一层视频及内部文字样式
  .hilton_index_video {
    position: relative;

    .index_video {
      width: 100%;
      margin: auto;
      video {
        width: 100%;
        height: 100%;
      }
    }

    .hilton_index_title {
      color: white;
      position: absolute;
      left: 5%;
      bottom: 20%;
      color: #fff;

      span {
        font-size: 18px;
        font-style: italic;
        letter-spacing: 3px;
      }

      h1 {
        font-size: 44px;
        margin: 15px 0;
      }

      p {
        font-size: 12px;
        margin-bottom: 10px;
        letter-spacing: 3px;
      }

      .hilton_index_video_text {
        span {
          font-style: normal;
          font-size: 12px;
          border-bottom: 1px solid #fff;
          padding-bottom: 3px;
          margin-right: 8px;
          font-weight: bold;
          cursor: pointer;

          &:hover {
            color: #989898;
            border-bottom: 1px solid #989898;
            transition: all 1s;
          }
        }
      }
    }
  }

  //探索更多
  .explore_more {
    width: 80%;
    margin: auto;
    text-align: center;
    span {
      display: inline-block;
      margin: 20px 0;
      font-size: 12px;
      letter-spacing: 10px;
    }
  }

  //标签页
  .index_tag {
    display: flex;
    justify-content: center;
    width: 80%;
    margin: auto;
    padding: 10px 0;

    div {
      width: 130px;
      height: 120px;
      border: 1px solid #d7d7d7;
      border-radius: 5px;
      display: inline-flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      margin-right: 20px;

      span {
        line-height: 40px;
        font-size: 12px;

        &.s1 {
          font-size: 25px;
        }
      }

      &:hover {
        box-shadow: 2px 2px 10px black;
        transition: all 0.5s;
      }
    }
  }

  //文字介绍
  .index_introduce {
    width: 80%;
    height: 360px;
    margin: 20px auto;
    background-color: #f5f5f5;
    position: relative;
    p {
      position: absolute;
      top: 20%;
      left: 50%;
      transform: translateX(-50%);
      font-size: 24px;
    }

    div {
      position: absolute;
      top: 35%;
      left: 50%;
      line-height: 30px;
      transform: translateX(-50%);
      width: 60%;
      margin: auto;
      font-size: 15px;
      text-align: center;
    }
  }

  //客房与套房
  .swiper {
    padding: 20px 0;
    margin: 0 50px;

    .swiper-slide {
      .swiper_img {
        .swiper_img1 {
          position: relative;
          overflow: hidden;
          img {
            width: 100%;
          }

          .swiper_detail {
            background-color: #fff;
            position: absolute;
            bottom: 0;
            transform: translateY(100%);
          }
        }

        h2 {
          width: 100%;
          text-align: center;
          margin: 20px 0;
          font-size: 26px;
          font-weight: bold;
        }
      }
      &.swiper-slide-active {
        .swiper_img {
          .swiper_img1 {
            .swiper_detail {
              background-color: #eee;
              position: absolute;
              bottom: 0;
              transition: all 1s ease;
              transform: translateY(0%);
              opacity: 0.8;

              span {
                display: inline-block;
                width: 30%;
                margin: 16px 0;
                padding: 10px;
                text-align: center;
                border: 1px solid black;
                border-radius: 5px;
                cursor: pointer;
                margin-left: 10%;

                &:first-child {
                  background-color: #000;
                  color: #fff;
                }

                &:nth-child(2) {
                  background-color: #fff;
                  color: #000;
                }
              }

              p {
                line-height: 28px;
                margin-bottom: 10px;
                padding: 0 20px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
              }
            }
          }
        }
      }
    }
  }

  //精选优惠
  .index_discount {
    width: 80%;
    margin: auto;

    .index_discount_1 {
      display: flex;
      justify-content: space-between;

      span {
        margin: 20px 0;
        font-size: 15px;
        color: #000;
        padding: 5px 0;

        &:last-child {
          border-bottom: 1px solid black;
        }
      }
    }

    ul {
      display: flex;
      justify-content: space-between;

      li {
        width: 23%;
        overflow: hidden;
        position: relative;

        img {
          width: 250%;
          margin: auto;

          &:hover {
            filter: blur(10px);
          }
        }

        div {
          width: 100%;
          color: #fff;
          font-size: 16px;
          position: absolute;
          bottom: 0px;
          padding: 10px;
          background-image: linear-gradient(to top, black, transparent);
          line-height: 30px;
          cursor: pointer;
        }
      }
    }
  }

  // 精彩北京 四季呈现
  .index_big {
    margin: 30px 0;
    > p {
      width: 100%;
      text-align: center;
      letter-spacing: 5px;
      margin-bottom: 30px;
    }

    .index_big_detail {
      width: 80%;
      margin: auto;
      display: flex;
      justify-content: space-between;

      div {
        width: 50%;
        background-color: #f5f5f5;

        &:first-child {
          img {
            width: 100%;
          }
        }

        &:last-child {
          display: inline;
          position: relative;

          p {
            width: 60%;
            margin: auto;
            &:first-child {
              margin-top: 200px;
              font-size: 24px;
              color: #000;
              margin-bottom: 20px;
              line-height: 30px;
              font-family: Noto Sans SC, sans-serif;
            }

            &:nth-child(2) {
              font-size: 14px;
              margin-bottom: 30px;
              line-height: 30px;
            }
            &:nth-child(3) {
              padding-bottom: 5px;
              font-size: 14px;
              text-decoration: underline;
            }
          }
        }
      }
    }
  }

  //特色体验
  .experience {
    width: 80%;
    margin: auto;
    margin-top: 80px;

    .experience_title {
      display: flex;
      justify-content: space-between;

      div:first-child {
        width: 70%;

        span {
          display: inline-block;
          font-style: italic;
          font-size: 18px;
          margin-bottom: 10px;
        }
        h2 {
          font-size: 24px;
          margin: 5px 0 10px 0;
          letter-spacing: 10px;
          font-weight: 100;
        }
        p {
          font-size: 15px;
          line-height: 30px;
          margin-bottom: 20px;
        }
      }

      div:nth-child(2) {
        width: 20%;
        position: relative;
        span {
          display: inline-block;
          font-size: 12px;
          text-align: center;
          position: absolute;
          bottom: 10%;
          left: 20%;
          border-bottom: 1px solid black;
          letter-spacing: normal;
          padding-bottom: 5px;
        }
      }
    }

    .experience_img {
      margin-bottom: 30px;
      img {
        width: 100%;
      }
    }
  }

  //致辞
  .index_spaeech {
    position: relative;
    img {
      width: 100%;
    }

    div {
      position: absolute;
      top: 0;
      width: 100%;
      height: 957px;
      background-image: linear-gradient(to bottom, black, transparent);

      p:first-child {
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-style: italic;
        font-size: 48px;
        font-weight: bold;
        line-height: 3.5rem;
        text-align: center;
        letter-spacing: 0.2rem;
      }

      p:last-child {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 0.2rem;
        text-align: center;
      }
    }
  }

  //#FSBEIJING
  .visit_bj {
    width: 80%;
    margin: auto;
    text-align: center;
    margin-bottom: 150px;

    p:first-child {
      font-size: 24px;
      margin: 30px 0;
      letter-spacing: 0.3rem;
      color: #000;
    }

    p:nth-child(2) {
      font-size: 18px;
      margin: 40px 0 60px 0;
      color: #000;
    }

    .visit_bj_img {
      display: flex;
      justify-content: center;
      margin: auto;

      div:first-child {
        display: flex;
        flex-direction: column;
        text-align: right;
        width: 20%;
        margin-right: 10px;
        img {
          width: 100%;
          margin-bottom: 20px;
        }
        span {
          text-align: center;
          font-size: 12px;
          color: #000;
        }
      }

      div:last-child {
        display: flex;
        flex-direction: column;
        text-align: right;
        width: 20%;
        margin-left: 10px;
        img {
          width: 100%;
          margin-bottom: 20px;
        }
        span {
          text-align: center;
          font-size: 12px;
          color: #000;
        }
      }
    }
  }
}
</style>
